docs: Add css docs to entries
authorMatthias Clasen <mclasen@redhat.com>
Fri, 26 Jun 2020 15:56:27 +0000 (11:56 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 26 Jun 2020 20:13:02 +0000 (16:13 -0400)
The various entries were missing the semi-standard
"CSS Nodes" section in their long descriptions. Add
them.

gtk/gtkentry.c
gtk/gtkpasswordentry.c
gtk/gtksearchentry.c

index 6ab195c7c61f020f49744e1c841f22025416e3ac..77d42411215ca55506f2c25bb72c05eb13737bd7 100644 (file)
  * ├── text[.readonly]
  * ├── image.left
  * ├── image.right
- * â\94\9c── [progress[.pulse]]
+ * â\95°── [progress[.pulse]]
  * ]|
  *
  * GtkEntry has a main node with the name entry. Depending on the properties
index 391f5076edd6729f5734a6d0f0bb7ea6bf110224..30e09504904cf54e5f5c152c00b5ea58b00b4949 100644 (file)
  *
  * GtkPasswordEntry provides only minimal API and should be used with the
  * #GtkEditable API.
+ *
+ * # CSS Nodes
+ *
+ * |[<!-- language="plain" -->
+ * entry.password
+ * ╰── text
+ *     ├── image.caps-lock-indicator
+ *     ┊
+ * ]|
+ *
+ * GtkPasswordEntry has a single CSS node with name entry that carries
+ * a .passwordstyle class. The text Css node below it has a child with
+ * name image and style class .caps-lock-indicator for the Caps Lock
+ * icon, and possibly other children.
  */
 
 typedef struct {
index e65b3b7b8548faca3183e4f0b294db8c33dfc14c..4be02d57a731f033a44b00db015fd710d617a9bb 100644 (file)
  * placed inside a #GtkSearchBar. If that is not the case,
  * you can use gtk_search_entry_set_key_capture_widget() to let it
  * capture key input from another widget.
+ *
+ * # CSS Nodes
+ *
+ * |[<!-- language="plain" -->
+ * entry.search
+ * ╰── text
+ * ]|
+ *
+ * GtkSearchEntry has a single CSS node with name entry that carries
+ * a .sarch style class, and the text node is a child of that.
+
  */
 
 enum {